home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / Bonus / Plasmatech / ptscp_eval.exe / %MAINDIR% / Interface / UPTShConsts.int < prev    next >
Encoding:
Text File  |  2001-08-31  |  5.4 KB  |  126 lines

  1. unit UPTShConsts; // Copyright ⌐ 1996-2001 Plasmatech Software Design. All rights reserved.
  2. {
  3.  Shell Control Pack
  4.  Version 1.6
  5.  
  6.  This unit declares the resource strings used for internationalisation. For Delphi 2 and
  7.  C++Builder it also declares the PTLoadStr function and gptshResourceInstance global
  8.  variable.
  9.  
  10.  To build your project with a single language's translations in the executable itself,
  11.  declare one of the following conditional defines in your Project|Options.
  12.  
  13.  To build a separate translation DLL with Delphi 3, build a .drc file with Project|Options|Linker|Detailed Map file.
  14.  Apply each language's translation .CSV file to the .drc file with the MergeDRC utility. Build these merged drc files
  15.  into .res files with brc32.exe. For each target language, create a new Delphi project that builds to a DLL and
  16.  
  17.  Other strings and forms should be
  18.  for your application must also be in the DLL.
  19.  
  20.  To build a separate translation DLL with Delphi 2
  21.  
  22.  Language    $DEFINE    2-character locale id
  23.  ----------- ---------- ---------------------
  24.  Czech       LANG_CS    cs
  25.  Danish      LANG_DA    da
  26.  Dutch       LANG_NL    nl
  27.  English     LANG_EN    en
  28.  Finnish     LANG_FI    fi
  29.  French      LANG_FR    fr
  30.  German      LANG_DE    de
  31.  Hungarian   LANG_HU    hu
  32.  Italian     LANG_IT    it
  33.  Japanese    LANG_JP    jp
  34.  Norwegian   LANG_NO    no
  35.  Polish      LANG_PL    pl
  36.  Portuguese  LANG_PT    pt
  37.  Russian     LANG_RU    ru
  38.  Spanish     LANG_ES    es
  39.  Swedish     LANG_SV    sv
  40.  
  41.  History
  42.  ===================================================================================================
  43.  V1.6   2Jul01 Delphi 6 release, no changes.
  44.  V1.5c 30Mar01 No changes.
  45.  V1.5b 12Dec00 No changes.
  46.  V1.5a 14May00 No changes.
  47.  V1.5   3Mar00 C++Builder 5 release, no changes.
  48.  V1.4a 15Dec99 No changes.
  49.  V1.4  14Sep99 No changes.
  50.  V1.3h 29Mar99 No changes.
  51.  V1.3g  1Dec98 No changes.
  52.  V1.3f 12Jul98 Delphi 4 release, no changes.
  53.  V1.3e 22Apr98 No changes.
  54.  V1.3d 18Apr98 No changes.
  55.  V1.3c 16Mar98 C++Builder 3 support.
  56.  V1.3b  7Feb98 Added Czech, Hungarian, Polish and Russian.
  57.  V1.3a  7Jan98 No changes.
  58.  V1.3  28Nov97 This unit was added to the pack for this version.
  59. }
  60. {$INCLUDE PTCompVer.inc}
  61. {$H+}
  62.  
  63. interface
  64. uses Windows;
  65.  
  66.  
  67. {$IFDEF RESOURCESTRINGS}
  68. function PTLoadStr( id: String ): String;
  69. {$ELSE}
  70. function PTLoadStr( id: Integer ): String;
  71. {$ENDIF}
  72.  
  73.  
  74. {$IFDEF RESOURCESTRINGS}
  75.   {$IFDEF LANG_CS} {$I Lang\Czech\PTShConstsD3.inc}    {$DEFINE APPLIED_LANG} {$ENDIF}
  76.   {$IFDEF LANG_DA} {$I Lang\Danish\PTShConstsD3.inc}   {$DEFINE APPLIED_LANG} {$ENDIF}
  77.   {$IFDEF LANG_DE} {$I Lang\German\PTShConstsD3.inc}   {$DEFINE APPLIED_LANG} {$ENDIF}
  78.   {$IFDEF LANG_ES} {$I Lang\Spanish\PTShConstsD3.inc}  {$DEFINE APPLIED_LANG} {$ENDIF}
  79.   {$IFDEF LANG_EN} {$I Lang\English\PTShConstsD3.inc}  {$DEFINE APPLIED_LANG} {$ENDIF}
  80.   {$IFDEF LANG_FI} {$I Lang\Finnish\PTShConstsD3.inc}  {$DEFINE APPLIED_LANG} {$ENDIF}
  81.   {$IFDEF LANG_FR} {$I Lang\French\PTShConstsD3.inc}   {$DEFINE APPLIED_LANG} {$ENDIF}
  82.   {$IFDEF LANG_HU} {$I Lang\Hungarian\PTShConstsD3.inc}{$DEFINE APPLIED_LANG} {$ENDIF}
  83.   {$IFDEF LANG_IT} {$I Lang\Italian\PTShConstsD3.inc}  {$DEFINE APPLIED_LANG} {$ENDIF}
  84.   {$IFDEF LANG_JP} {$I Lang\Japanese\PTShConstsD3.inc} {$DEFINE APPLIED_LANG} {$ENDIF}
  85.   {$IFDEF LANG_NL} {$I Lang\Dutch\PTShConstsD3.inc}    {$DEFINE APPLIED_LANG} {$ENDIF}
  86.   {$IFDEF LANG_NO} {$I Lang\Norwegian\PTShConstsD3.inc} {$DEFINE APPLIED_LANG} {$ENDIF}
  87.   {$IFDEF LANG_PL} {$I Lang\Polish\PTShConstsD3.inc}   {$DEFINE APPLIED_LANG} {$ENDIF}
  88.   {$IFDEF LANG_PT} {$I Lang\Portuguese_Brazil\PTShConstsD3.inc} {$DEFINE APPLIED_LANG} {$ENDIF}
  89.   {$IFDEF LANG_RU} {$I Lang\Russian\PTShConstsD3.inc}  {$DEFINE APPLIED_LANG} {$ENDIF}
  90.   {$IFDEF LANG_SV} {$I Lang\Swedish\PTShConstsD3.inc}  {$DEFINE APPLIED_LANG} {$ENDIF}
  91.  
  92.   {$IFNDEF APPLIED_LANG} {$I Lang\English\PTShConstsD3.inc} {$ENDIF}  // Default to english
  93.  
  94. {$ELSE}
  95.  
  96.   {$I Lang\PTShConstsD2.inc}
  97.  
  98.   {$IFDEF VER90} // C++Builder has its own UPTShConsts.cpp file
  99.     {$IFDEF LANG_CS} {$R PTShConstsD2_cs.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  100.     {$IFDEF LANG_DA} {$R PTShConstsD2_da.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  101.     {$IFDEF LANG_DE} {$R PTShConstsD2_de.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  102.     {$IFDEF LANG_ES} {$R PTShConstsD2_es.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  103.     {$IFDEF LANG_FI} {$R PTShConstsD2_fi.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  104.     {$IFDEF LANG_FR} {$R PTShConstsD2_fr.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  105.     {$IFDEF LANG_HU} {$R PTShConstsD2_hu.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  106.     {$IFDEF LANG_IT} {$R PTShConstsD2_it.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  107.     {$IFDEF LANG_JP} {$R PTShConstsD2_jp.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  108.     {$IFDEF LANG_NL} {$R PTShConstsD2_nl.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  109.     {$IFDEF LANG_NO} {$R PTShConstsD2_no.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  110.     {$IFDEF LANG_PL} {$R PTShConstsD2_pl.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  111.     {$IFDEF LANG_PT} {$R PTShConstsD2_pt.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  112.     {$IFDEF LANG_RU} {$R PTShConstsD2_ru.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  113.     {$IFDEF LANG_SV} {$R PTShConstsD2_sv.res} {$DEFINE APPLIED_LANG} {$ENDIF}
  114.     {$IFNDEF APPLIED_LANG} {$R PTShConstsD2.res}  {$ENDIF}
  115.   {$ENDIF}
  116.  
  117. var gptshResourceInstance: THandle = 0;
  118.   {If you use a custom resource dll you should assign your module handle to this variable.}
  119.  
  120. {$ENDIF}
  121.  
  122.  
  123.  
  124.  
  125. implementation
  126.